/**
 * Project: Useful Programs <br>
 * Package: tools
 */
package org.leumasjaffe.dice;

import org.eclipse.jdt.annotation.NonNullByDefault;

/**
 * Class .Const in file Const.java <br>
 * 
 * @author leumasjaffe
 * @version Jan 22, 2013
 * Created on: Aug 21, 2012
 * 
 */
@NonNullByDefault
public class Const extends AbsRoller {
	final int value;
	
	/**
	 * @param value The value of this constant
	 */
	public Const(int value) {
		this.value = value;
	}

	/* (non-Javadoc)
	 * @see tools.Roll#getResult()
	 */
	@Override
	public int roll() {
		return this.value;
	}
	
	/* (non-Javadoc)
	 * @see tools.Roll#getResult(int)
	 */
	@Override
	public int roll(int bonus) {
		return this.value + bonus;
	}

}
